<?php

if (!defined('_CAN_LOAD_FILES_'))
    exit;

class BlockHomepage extends Module {
    protected $error = false;

    public function __construct() {
        $this->name = 'blockhomepage';
        $this->version = '1.0';
        $this->author = 'CreativeCoder.pl';
        $this->need_instance = 0;

        parent::__construct();

        $this->displayName = $this->l('Linki Homepage');
        $this->description = $this->l('Dodaje wybrane linki do strony głównej soczewki.net');
        $this->confirmUninstall = $this->l('Are you sure you want to delete all your homepage links ?');
    }

    function install() {
        if (!parent::install() OR !$this->registerHook('home'))
            return false;
        return true;
    }

    function hookHome($params) {
        global $smarty;
        return $this->display(__FILE__, 'blockhomepage.tpl');
    }

}
